package com.goal98

import java.text.SimpleDateFormat

class SitemapEntry {

    String loc
    Date lastmodDate
    String changefreq
    Float priority

    static constraints = {
    }

    static transients = ['lastmod']

    String getLastmod(){
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd")
        return formatter.format(lastmodDate)
    }
}
